﻿<style> 
.citysel td a:link,.citysel td a:visited{color:#009af2;}
.citysel th a:link,.citysel th a:visited{ color:#369; margin-right:5px;}
.citysel td a:hover,.citysel th a:hover{ color:#FFF;}
</style>
<table width="390" border="0" cellspacing="0" cellpadding="0">
<tr>
  <th>
#foreach($movieCity in $movieCity_BLL.GetModelList("IsTop=1"))
        <a id="${movieCity.CityId}" href="javascript:chooseCity('${movieCity.CityId}','${movieCity.CityName}');">$movieCity.CityName</a>
#end
</th>
</tr>
<tr>
  <td>
#foreach($movieCity in $movieCity_BLL.GetModelList("1=1 order by CityOrder"))
        <a id="${movieCity.CityId}" href="javascript:chooseCity('${movieCity.CityId}','${movieCity.CityName}');">$movieCity.CityName</a>
#end
  </td>
</tr>
</table>
<script language="javascript">
    function chooseCity(cityId, cityName) {
        //设置城市Id
        setCookie("ztyingonde", cityId, 10, "/");
        //设置城市名称
        setCookie("cityname", cityName, 10, "/");

        location.href = location.href;
    }
</script>
